//=============================================================================

#ifndef APACKETINI_H
  #define APACKETINI_H

//=============================================================================

#include "aPacket.h"

//=============================================================================
/*
  *0| 1 byte - packet type = PAK_INI
  *1| sizeof(long) bytes - sizeof packet;
  *2| 4 bytes - version ('float' type)
  *3| 1 byte - is it welcome from server ? /*4 = 0
  *4| 1 byte - is it welcome from client ? /*3 = 0
*/
class aPacketIni : public aPacket
{
  public:
    aPacketIni();
    aPacketIni(char* in);
    aPacketIni(const aPacketIni& p);
    aPacketIni(float ver, bool stc, bool cts);
      void apApartPacket();
      void apPreparePacket();

      const aPacketIni& operator=(const aPacketIni& p);

    ~aPacketIni();

  public:
    float version;
    bool serverToClient;
    bool clientToServer;
};

//=============================================================================

#endif

//=============================================================================
